import request from '@/utils/request';

const other = {
  list(params) {
    return request.get('/cgzh/performance/list', {params});
  },
  add(data) {
    return request.post('/cgzh/performance/add', data);
  },
  update(data) {
    return request.post('/cgzh/performance/update', data);
  },
  get(id) {
    return request.get(`/cgzh/performance/detail/${id}`);
  },
  delete(id) {
    return request.post(`/cgzh/performance/delete/${id}`);
  },
  myList(params) {
    return request.get('/cgzh/performance/myList', {params});
  },
  getAll(id) {
    return request.get(`/cgzh/performance/allDetail/${id}`);
  },
  memberAddList(data) {
    return request.post(`/cgzh/performanceMember/addList`, data);
  },
  memberListGet(id){
    return request.get(`/cgzh/performanceMember/getByPerformanceId/${id}`);
  },
  companyListGet(id){
    return request.get(`/cgzh/performanceRight/getByPerformanceId/${id}`);
  },
  companyAddList(data){
    return request.post(`/cgzh/performanceRight/addList`, data);
  },
  projectAddList(data){
    return request.post(`/cgzh/performanceProject/addList`, data);
  },
  projectListGet(id){
    return request.get(`/cgzh/performanceProject/getByPerformanceId/${id}`);
  },
  benefitListGet(id){
    return request.get(`/cgzh/performanceBenefit/getByPerformanceId/${id}`);
  },
  benefitAddList(data){
    return request.post(`/cgzh/performanceBenefit/addList`, data);
  },
  submit(data){
    return request.post(`/cgzh/performance/submit`, data);
  },
  getJoinList(params) {
    return request.get('/cgzh/performance/getJoinList', {params});
  },
}

export default other;
